class Foo extends React.Component {
    componentDidMount() {
        this.state.name = 'foo';
    }
}
